home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000145_news@newsmaster….columbia.edu _Tue Apr 29 20:07:08 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id UAA26996
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 29 Apr 1997 20:07:07 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id UAA23051
for kermit.misc@watsun; Tue, 29 Apr 1997 20:07:07 -0400 (EDT)
From: arthur@gateway.dircsa.org.au (Arthur Marsh)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Need help capturing text output
Date: 30 Apr 1997 01:34:45 +0930
Organization: DIRC - Disability Information & Resource Centre - Sth Australia
Lines: 95
Message-ID: <5k566t$moj@gateway.dircsa.org.au>
References: <3365C5DB.373053CB@salug.org.au>
NNTP-Posting-Host: apache.dircsa.org.au
X-Newsreader: TIN [version 1.1 PL8]
Path: news.columbia.edu!panix!news.mathworks.com!cam-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!pacbell.com!ihnp4.ucsd.edu!munnari.OZ.AU!harbinger.cc.monash.edu.au!ns.saard.net!news.camtech.net.au!news.dircsa.org.au!news.dircsa.org.au!not-for-mail
Xref: news.columbia.edu comp.protocols.kermit.misc:6965
Chris Foote (chris@salug.org.au) wrote:
: Hello everyone.
: I am attempting to get output from a UV meter using Kermit. This UV
: Meter is connected via serial cable to a modem, and I have a Linux
: box runing Kermit attached to a modem which dials into the UV meter's
: modem.
: I can successfully execute commands on the UV meter in 'CONNECT' mode,
: and my script is almost working - but I don't know how to capture the
: output to a file.
: It seems that the 'log xxx' functions weren't designed for this
: purpose - although I could be wrong :-)
: I'm a Kermit newbie, so any help would be most appreciated.
I do some logging by the following method:
#!/bin/sh
ps -ef|grep kermit|grep chat
if [ $? -ne 0 ]
then
/home/arthur/chatlog.sh|/opt/bin/kermit -y /home/arthur/chatlog.ini >> /home/arthur/Mail/chat.log
fi
chatlog.sh looks like:
#!/bin/sh
while true
do
sleep 120
echo \*\*\* Chat Logging is in effect \*\*\* \\n\\r
sleep 1
echo /data\\n\\r
sleep 419
done
You could instead have a shell script that just sleeps for the period you
want logging done, and when the shell script terminates, so does kermit.
chatlog.ini does the following:
NOPUSH
;LOG SESSION /home/arthur/Mail/chat.log APPEND
SET CARRIER ON 1
SET COMMAND BYTESIZE 8
SET EXIT WARNING OFF
SET QUIET ON
SET TERMINAL AUTODOWNLOAD OFF
SET TERMINAL BYTESIZE 8
SET TERMINAL CHARACTER-SET TRANSPARENT
SET TERMINAL ESCAPE DISABLED
SET TERMINAL APC OFF
SET PARITY NONE
set line /dev/tty6
if fail goto endker
SET SPEED 19200
SET FLOW RTS/CTS
pause 1
output \13
pause 5
output Chat Log\13
pause 5
output cglog\13
pause 5
output \32
pause 5
output \32
pause 5
output \32
pause 5
output \32
pause 5
output C
pause 5
output \32
pause 5
output O
pause 5
output \32
pause 5
CONNECT
:endker
echo disconnecting...
quit
: Chris Foote
: South Australian Linux Users Group
: chris@salug.org.au
--
Arthur Marsh, telephone +61-8-8370-2365, fax +61-8-8223-5082
arthur@dircsa.org.au
.endofsig